import request from '@/js/request';

export default {
	// 首页明星律师
	queryPromotionRound: () => request({
		method: 'GET',
		url: '/api/dev_lawyer/promotionRound'
	}),
	// 更多明星律师列表
	queryPromotionList: (data) => request({
		method: 'GET',
		url: '/api/dev_lawyer/promotionList',
		data
	}),
	// 本地名律接口
	queryPromotionLocal: (data) => request({
		method: 'GET',
		url: '/api/dev_lawyer/local',
		data
	}),


	// 法律看点
	getNews: (data) => request({
		method: 'GET',
		url: '/api/index/getNews',
		data
	}),
	// 法律看点详情 http://api.dev.fahuren.comindex/getNewsDetail?id=1
	getNewsDetail: (data) => request({
		method: 'GET',
		url: '/api/index/getNewsDetail',
		data
	}),

	// 律师列表接口
	queryLawyerList: (data) => request({
		method: 'GET',
		url: '/api/dev_lawyer/lawyerList',
		data
	}),
	// 律师详情接口
	queryLawyerDetail: (data) => request({
		method: 'POST',
		url: '/api/dev_lawyer/getLawyerDetail',
		data
	}),
	// 收藏/取消收藏律师接口
	collectLawyer: (data) => request({
		method: 'POST',
		url: '/api/dev_lawyer/collectLawyer',
		data
	}, {
		loading: '加载中...',
		isToast: true
	}),
	// 往期案例详情接口
	getBeforeDetail: (data) => request({
		method: 'POST',
		url: '/api/dev_lawyer/getBeforeDetail',
		data
	}),
	// 律师评价列表接口
	queryLawyerCommentList: (data) => request({
		method: 'GET',
		url: '/api/dev_comment/lawyerCommentList',
		data
	}),
	// 我的收藏列表接口
	queryLawyerCollect: (data) => request({
		method: 'GET',
		url: '/api/dev_collect/index',
		data
	}),
	// 会员权限信息
	queryVipBenefits: () => request({
		method: 'GET',
		url: '/api/dev_vip/benefits'
	}),
	// 会员购买记录展播
	queryVipBroadcast: () => request({
		method: 'POST',
		url: '/api/dev_vip/broadcast'
	}),
	// 电话咨询购买页接口
	getCallSpec: () => request({
		method: 'POST',
		url: '/api/dev_order_call/getCallSpec'
	}),
	// 新增电话咨询订单接口
	insertCall: (data) => request({
		method: 'POST',
		url: '/api/dev_order_call/insertCall',
		data
	}),
	// 合同审核购买页接口
	getReviewSpec: () => request({
		method: 'POST',
		url: '/api/dev_order_review/getReviewSpec'
	}),
	// 新增合同审核订单接口
	insertReview: (data) => request({
		method: 'POST',
		url: '/api/dev_order_review/insertReview',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 合同审核订单列表接口
	insertReviewList: (data) => request({
		method: 'GET',
		url: '/api/dev_order_review/index',
		data
	}),
	// 合同审核订单详情接口
	insertReviewdetail: (data) => request({
		method: 'POST',
		url: '/api/dev_order_review/detail',
		data
	}),
	// 合同审核订单确认完成接口
	insertReviewComplete: (data) => request({
		method: 'POST',
		url: '/api/dev_order_review/toComplete',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 合同审核订单详情接口
	insertReviewdetail: (data) => request({
		method: 'POST',
		url: '/api/dev_order_review/detail',
		data
	}),
	// 合同审核订单详情驳回接口
	insertReviewReject: (data) => request({
		method: 'POST',
		url: '/api/dev_order_review/toReject',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 合同审核订单投诉接口
	insertReviewComplaint: (data) => request({
		method: 'POST',
		url: '/api/dev_order_review/toComplaint',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 合同定制购买页接口
	getCustomizeSpec: () => request({
		method: 'POST',
		url: '/api/dev_order_customize/getCustomizeSpec'
	}),
	// 新增合同定制订单接口
	insertCustomize: (data) => request({
		method: 'POST',
		url: '/api/dev_order_customize/insertCustomize',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 合同定制订单列表接口
	insertCustomizeList: (data) => request({
		method: 'GET',
		url: '/api/dev_order_customize/index',
		data
	}),
	// 合同定制订单详情接口
	insertCustomizedetail: (data) => request({
		method: 'POST',
		url: '/api/dev_order_customize/detail',
		data
	}),
	// 合同定制订单确认完成接口
	insertCustomizeComplete: (data) => request({
		method: 'POST',
		url: '/api/dev_order_customize/toComplete',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 合同定制订单详情驳回接口
	insertCustomizeReject: (data) => request({
		method: 'POST',
		url: '/api/dev_order_customize/toReject',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 合同定制订单投诉接口
	insertCustomizeComplaint: (data) => request({
		method: 'POST',
		url: '/api/dev_order_customize/toComplaint',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 律师函购买页接口
	getLetterSpec: () => request({
		method: 'POST',
		url: '/api/dev_order_letter/getLetterSpec'
	}),
	// 新增律师函订单接口
	insertLetter: (data) => request({
		method: 'POST',
		url: '/api/dev_order_letter/insertLetter',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 律师函订单确认完成接口
	insertLetterComplete: (data) => request({
		method: 'POST',
		url: '/api/dev_order_letter/toComplete',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 律师函订单列表接口
	insertLetterList: (data) => request({
		method: 'GET',
		url: '/api/dev_order_letter/index',
		data
	}),
	// 律师函订单详情接口
	insertLetterdetail: (data) => request({
		method: 'POST',
		url: '/api/dev_order_letter/detail',
		data
	}),
	// 律师函订单详情驳回接口
	insertLetterReject: (data) => request({
		method: 'POST',
		url: '/api/dev_order_letter/toReject',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 律师函订单投诉接口
	insertLetterComplaint: (data) => request({
		method: 'POST',
		url: '/api/dev_order_letter/toComplaint',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 代写诉讼购买页接口
	getProceedingSpec: () => request({
		method: 'POST',
		url: '/api/dev_order_proceeding/getProceedingSpec'
	}),
	// 新增代写诉讼订单接口
	insertProceeding: (data) => request({
		method: 'POST',
		url: '/api/dev_order_proceeding/insertProceeding',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 代写诉讼订单列表接口
	insertProceedingList: (data) => request({
		method: 'GET',
		url: '/api/dev_order_proceeding/index',
		data
	}),
	// 代写诉讼订单详情接口
	insertProceedingdetail: (data) => request({
		method: 'POST',
		url: '/api/dev_order_proceeding/detail',
		data
	}),
	// 代写诉讼订单确认完成接口
	insertProceedingComplete: (data) => request({
		method: 'POST',
		url: '/api/dev_order_proceeding/toComplete',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 代写诉讼订单详情驳回接口
	insertProceedingReject: (data) => request({
		method: 'POST',
		url: '/api/dev_order_proceeding/toReject',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 代写诉讼订单投诉接口
	insertProceedingComplaint: (data) => request({
		method: 'POST',
		url: '/api/dev_order_proceeding/toComplaint',
		data
	}, {
		loading: '提交中...',
		isToast: true
	}),
	// 获取投诉原因接口
	queryComplaintList: (data) => request({
		method: 'GET',
		url: '/api/dev_dictionary/getList',
		data
	}),
	// 获取聊天用户标识
	getChatterId: (data) => request({
		method: 'POST',
		url: '/api/dev_order_chat/getChatterId',
		data
	}),
	// 新增聊天订单接口
	insertChat: (data) => request({
		method: 'POST',
		url: '/api/dev_order_chat/insertChat',
		data
	}),
	// 聊天结束回调
	updateCall: (data) => request({
		method: 'POST',
		url: '/api/dev_order_chat/updateCall',
		data
	})
}